﻿@model Fmis10_1.Models.Team

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Default.cshtml";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Team</legend>
<table>
            @Html.HiddenFor(model => model.TeamId)
            <tr>
                <td>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.TeamName)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.TeamName)
                        @Html.ValidationMessageFor(model => model.TeamName)
                    </div>
                </td>
                <td>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.ClubId, "Club")
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.DropDownList("ClubId", String.Empty)
                        @Html.ValidationMessageFor(model => model.ClubId)
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Webpage)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Webpage)
                        @Html.ValidationMessageFor(model => model.Webpage)
                    </div>
                </td>
                <td>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Division)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Division)
                        @Html.ValidationMessageFor(model => model.Division)
                    </div>
                </td>
            </tr>

            <tr>
                <td>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Gender)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Gender)
                        @Html.ValidationMessageFor(model => model.Gender)
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.HomeShirt)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.HomeShirt)
                        @Html.ValidationMessageFor(model => model.HomeShirt)
                    </div>
                </td>
                <td>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.HomeShorts)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.HomeShorts)
                        @Html.ValidationMessageFor(model => model.HomeShorts)
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.HomeGoalieshirt)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.HomeGoalieshirt)
                        @Html.ValidationMessageFor(model => model.HomeGoalieshirt)
                    </div>
                </td>
                <td>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.AwayShirt)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.AwayShirt)
                        @Html.ValidationMessageFor(model => model.AwayShirt)
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.AwayShorts)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.AwayShorts)
                        @Html.ValidationMessageFor(model => model.AwayShorts)
                    </div>
                </td>
                <td>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.AwayGoalieshirt)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.AwayGoalieshirt)
                        @Html.ValidationMessageFor(model => model.AwayGoalieshirt)
                    </div>
                </td>

                <tr>
                    <td>
                        <div>
                            @Html.ActionLink("Back to List", "Index")
                        </div>
                    </td>
                    <td>
                        <p>
                            <input type="submit" value="Save" />
                        </p>
                    </td>

                </tr>



        </table>
    </fieldset>
}
